package com.eleadin.ruleengine.service;

import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 描述:
 * <p>
 * 创建者:zhaok
 * 创建时间:2023/7/8
 */
@Service
public class TestService {

    public Map<String, Object> getYcLimitStaInfo(JSONObject jsonObject) {
        Map<String, Object> result = new HashMap<>();
        int i = 1;
        List<String> returnList = jsonObject.getObject("returnList", List.class);
        for (String name : returnList) {
            result.put(name, "张三" + i++);
        }


        return result;
    }
}
